import request from "@/request"

// 查询用户分页信息
export const FindPageData = (data) => {
    return request.post("v1/sys/user/load/page",data)
}

// 根据用户id查询用户信息
export const GetById = (data) => {
    return request.post(`v1/sys/user/getById/${data}`)
}

// 保存系统用户
export const SaveData = (data) => {
    return request.post(`v1/sys/user/save`,data)
}

// 更新系统用户
export const UpdateData = (data) => {
    return request.post(`v1/sys/user/update`,data)
}

// 管理员修改密码
export const ResetSysUserPwd = (data) =>{
    return request.post("v1/sys/user/update/pwd",data)
}


// 修改状态
export const UpdateStatus = (data)=>{
    return request.post("v1/sys/user/update/status",data)
}

// 删除单个用户
export const DeleteById = (id) => {
    return request.post(`v1/sys/user/deleteById/${id}`)
}

// 批量删除
export const DeleteByIds = (ids) => {
    return request.post(`v1/sys/user/deleteByIds?ids=${ids}`)
}

